Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: publish as esm-only #36

Merged
merged 4 commits into from
Oct 19, 2022
Merged

feat!: publish as esm-only #36

merged 4 commits into from
Oct 19, 2022

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Oct 18, 2022

Following on from the conversation in ipld/ipld#224 this converts this repo to use the latest aegir with Unified CI.

  1. Remove all dev deps apart from aegir
  2. Run the npx aegir check-project command to update project config
  3. Remove non-Unified-CI github actions
  4. Update imports to import from src/index.js instead of @multiformats/murmur3
  5. Rename test/*.js to test/*.spec.js so aegir can find them
  6. Update tsconfig.json to extend config from aegir
  7. Remove "main" and other unused fields from package.json
  8. Use chai from aegir pre-configured with plugins we use
  9. Fixes everything the linter complains about
  10. Updates multiformats to 10.x.x

This will need a follow up PR to protocol/.github to add this repo to the Unified CI config file so it'll get automated config updates in the future.

Apologies that this PR is so noisy, most of it is from the check-project command

Following on from the conversation in ipld/ipld#224 this converts this repo to use the latest aegir with Unified CI.

1. Remove all dev deps apart from `aegir`
1. Run the `npx aegir check-project` command to update project config
1. Remove non-Unified-CI github actions
1. Update imports to import from `src/index.js` instead of `@multiformats/murmur3`
1. Rename `test/*.js` to `test/*.spec.js` so aegir can find them
1. Update `tsconfig.json` to extend config from `aegir`
1. Remove `"main"` and other unused fields from `package.json`
1. Use `chai` from `aegir` pre-configured with plugins we use
1. Fixes everything the linter complains about

This will need a follow up PR to `protocol/.github` to add this repo to the Unified CI [config file](https://github.com/protocol/.github/blob/master/configs/js.json) so
it'll get automated config updates in the future.

Apologies that this PR is so noisy, most of it is from the `check-project` command
example.js Outdated Show resolved Hide resolved
Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that example.js is the only thing standing out here I think

@achingbrain achingbrain merged commit b020bb4 into master Oct 19, 2022
@achingbrain achingbrain deleted the feat/publish-as-esm-only branch October 19, 2022 10:13
github-actions bot pushed a commit that referenced this pull request Oct 19, 2022
## [2.0.0](v1.1.3...v2.0.0) (2022-10-19)

### ⚠ BREAKING CHANGES

* publish as esm-only (#36)

### Features

* publish as esm-only ([#36](#36)) ([b020bb4](b020bb4))

### Trivial Changes

* **no-release:** bump actions/setup-node from 3.1.1 to 3.2.0 ([#28](#28)) ([920c819](920c819))
* **no-release:** bump actions/setup-node from 3.2.0 to 3.3.0 ([#29](#29)) ([8f8ef2c](8f8ef2c))
* **no-release:** bump actions/setup-node from 3.3.0 to 3.4.0 ([#30](#30)) ([65102a8](65102a8))
* **no-release:** bump actions/setup-node from 3.4.0 to 3.4.1 ([#31](#31)) ([a502675](a502675))
* **no-release:** bump actions/setup-node from 3.4.1 to 3.5.0 ([#32](#32)) ([300f888](300f888))
* **no-release:** bump actions/setup-node from 3.5.0 to 3.5.1 ([#34](#34)) ([af7d6c8](af7d6c8))
@github-actions
Copy link

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants